import VueRouter from "vue-router"

import App from "@/App"
import Login from "@/components/user/Login"
import Register from "@/components/user/Register"
import Home from "@/components/base/Home"
import CurrencyInfo from "@/components/basicInfo/CurrencyInfo"
import SymbolKlineInfo from "@/components/basicInfo/SymbolKlineInfo"
import OrderInfo from "@/components/order/OrderInfo"
import JobInfo from "@/components/job/JobInfo"
import WalletInfo from "@/components/wallet/WalletInfo"
import UserInfo from "@/components/user/UserInfo"


const router = new VueRouter({
	routes: [
		{path: "/", redirect: "/home", component: App},
		{path: "/login", component: Login},
		{path: "/register", component: Register},
		{
			path: "/home",
			component: Home,
			redirect: "/home/index",
			children: [
				{path: "index", component: CurrencyInfo},
				{path: "currencyInfo", component: CurrencyInfo},
				{path: "symbolKlineInfo", component: SymbolKlineInfo},
				{path: "order", component: OrderInfo},
				{path: "wallet", component: WalletInfo},
				{path: "job", component: JobInfo},
				{path: "user", component: UserInfo}
			]
		},
	]
})
export default router